package com.sky.task;

import com.sky.websocket.WebSocketServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class WebSocketTest {

    @Autowired
    private WebSocketServer webSocketServer;

 //   @Scheduled(cron = "0/5 * * * * *")
    public void sendMessageToClient(){
        webSocketServer.sendAll("hello client");
    }
}
